cannot change profile for the next exec call: No such file or directory
Metadata
Current evaluation
No evaluation has been recorded for this issue yet.
Issue body
I have hit this a bunch of times recently on my 16.04 KDE Neon machine.
It only happens if I set SNAPCRAFT_CONTAINER_BUILDS=1, run a build (which fails) and then re-run the build again. Here you can see the end of a failure, me re-running and it failing, then me doing a clean and re-running and it works.
alan@KinkPad-K450:~/src/cointop$ snap version
snap 2.32.1
snapd 2.32.1
series 16
neon 16.04
kernel 4.13.0-37-generic
alan@KinkPad-K450:~/src/cointop$ snapcraft --version
snapcraft, version 2.40+git3.b6ed5ac
File "/snap/snapcraft/1337/lib/python3.6/site-packages/snapcraft/internal/pluginhandler/__init__.py", line 363, in build
script_runner.run(scriptlet=self._part_properties.get('prepare'))
File "/snap/snapcraft/1337/lib/python3.6/site-packages/snapcraft/internal/pluginhandler/_scriptlets.py", line 43, in run
run([scriptlet_path], cwd=self._builddir)
File "/snap/snapcraft/1337/lib/python3.6/site-packages/snapcraft/internal/common.py", line 64, in run
subprocess.check_call(['/bin/sh', f.name] + cmd, **kwargs)
File "/snap/snapcraft/1337/usr/lib/python3.6/subprocess.py", line 291, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/bin/sh', '/tmp/tmplp53fzcu', '/tmp/tmpm286qh9h']' returned non-zero exit status 128.
You can anonymously report this issue to the snapcraft developers.
No other data than this traceback and the version of snapcraft in use will
be sent.
Would you like send this error data? [y/N]: n
Stopping local:snapcraft-cointop
alan@KinkPad-K450:~/src/cointop$ snapcraft
Using default LXD remote because SNAPCRAFT_CONTAINER_BUILDS is set to 1
Device /root/build_cointop removed from snapcraft-cointop
Waiting for a network connection...
Network connection established
Mounting /home/alan/src/cointop into container
Device /root/build_cointop added to snapcraft-cointop
cannot change profile for the next exec call: No such file or directory
Stopping local:snapcraft-cointop
alan@KinkPad-K450:~/src/cointop$ snapcraft clean
Deleting local:snapcraft-cointop
Cleaning up priming area
Cleaning up staging area
Cleaning up parts directory
alan@KinkPad-K450:~/src/cointop$ snapcraft
Using default LXD remote because SNAPCRAFT_CONTAINER_BUILDS is set to 1
Creating snapcraft-cointop
Device fuse added to snapcraft-cointop
Waiting for a network connection...
Network connection established
Hit:1 http://archive.ubuntu.com/ubuntu xenial InRelease
Get:2 http://archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB]
Get:3 http://archive.ubuntu.com/ubuntu xenial-backports InRelease [102 kB]
Get:4 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB]
Get:5 http://archive.ubuntu.com/ubuntu xenial/universe amd64 Packages [7532 kB]
Evaluation history
No evaluation history available.